﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Site1.Master" AutoEventWireup="true" CodeBehind="CargarResultado.aspx.cs" Inherits="BoxScore.juego.Resultado" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="lateral1" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="lateral2" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="lateral3" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="contenido" runat="server">


    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="ObjectDataSource1">
        <Columns>
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <table>
                        <tr>
                            <td></td>
                            <th>C</th>
                            <th>H</th>
                            <th>E</th>
                            <td></td>
                            <td></td>
                        
                        </tr>
                        
                        <tr>
                            <th>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("team_visitor", "{0}") %>'></asp:Label></th>
                            <td>
                                <asp:TextBox Text='<%# Eval("runs_visitor") %>' ID="TextBox1" 
                                    runat="server" Columns="3" MaxLength="2"></asp:TextBox>
                                <asp:FilteredTextBoxExtender ID="TextBox1_FilteredTextBoxExtender" 
                                    runat="server" Enabled="True" FilterType="Numbers" TargetControlID="TextBox1">
                                </asp:FilteredTextBoxExtender>
                            </td>
                            <td>
                                <asp:TextBox Text='<%# Eval("hit_visitor", "{0}") %>' ID="TextBox2" 
                                    runat="server" Columns="3"  MaxLength="2"></asp:TextBox>
                                <asp:FilteredTextBoxExtender ID="TextBox2_FilteredTextBoxExtender" 
                                    runat="server" Enabled="True" FilterType="Numbers" TargetControlID="TextBox2">
                                </asp:FilteredTextBoxExtender>
                            </td>
                            <td>
                                <asp:TextBox Text='<%# Eval("error_visitor", "{0}") %>' ID="TextBox3" 
                                    runat="server" Columns="3"  MaxLength="2"></asp:TextBox>
                                <asp:FilteredTextBoxExtender ID="TextBox3_FilteredTextBoxExtender" FilterType="Numbers" 
                                    runat="server" Enabled="True" TargetControlID="TextBox3">
                                </asp:FilteredTextBoxExtender>
                            </td>
                            <td>
                                <asp:HiddenField ID="HiddenField1" runat="server" 
                                    Value='<%# Eval("id_team_visitor", "{0}") %>' />
                            </td>
                            <td rowspan="2">
                                                            <asp:LinkButton ID="LinkButton2" runat="server" Text="Guardar" 
                                                                CommandArgument='<%# Eval("id", "{0}") %>' oncommand="LinkButton2_Command"></asp:LinkButton>
                                <br />
                                <asp:HyperLink ID="HyperLink1" runat="server" 
                                                                NavigateUrl='<%# "~/Estadisticas/XJuego.aspx?juego=" +Eval("id", "{0}") %>'>Cargar Estadisticas</asp:HyperLink>
                                </td>

                            
                            </td>
                        </tr>
                        
                        <tr>
                            <th>
                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("team_hc", "{0}") %>'></asp:Label></th>
                            <td>
                                <asp:TextBox Text='<%# Eval("runs_hc", "{0}") %>' ID="TextBox4" runat="server" 
                                    Columns="3"  MaxLength="2"></asp:TextBox>
                                <asp:FilteredTextBoxExtender ID="TextBox4_FilteredTextBoxExtender" 
                                    runat="server" Enabled="True" FilterType="Numbers" TargetControlID="TextBox4">
                                </asp:FilteredTextBoxExtender>
                            </td>
                            <td>
                                <asp:TextBox Text='<%# Eval("hit_hc") %>' ID="TextBox5" runat="server" 
                                    Columns="3"  MaxLength="2"></asp:TextBox>
                                <asp:FilteredTextBoxExtender FilterType="Numbers" ID="TextBox5_FilteredTextBoxExtender" 
                                    runat="server" Enabled="True" TargetControlID="TextBox5">
                                </asp:FilteredTextBoxExtender>
                            </td>
                            <td>
                                <asp:TextBox Text='<%# Eval("error_hc", "{0}") %>' ID="TextBox6" runat="server" 
                                    Columns="3"  MaxLength="2"></asp:TextBox>
                                <asp:FilteredTextBoxExtender FilterType="Numbers" ID="TextBox6_FilteredTextBoxExtender" 
                                    runat="server" Enabled="True" TargetControlID="TextBox6">
                                </asp:FilteredTextBoxExtender>
                            </td>
                            <td>
                                <asp:HiddenField ID="HiddenField2" runat="server" 
                                    Value='<%# Eval("id_team_hc", "{0}") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td>Tipo de Final</td>
                            <td>
                                <asp:DropDownList ID="DropDownList1" runat="server" 
                                    DataSourceID="ObjectDataSource1" DataTextField="descripcion" 
                                    DataValueField="id">
                                </asp:DropDownList>
                                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                                    SelectMethod="getTabla" TypeName="BoxScore.Model.BoxScoreBD">
                                    <SelectParameters>
                                        <asp:Parameter DefaultValue="result" Name="tabla" Type="String" />
                                        <asp:Parameter DefaultValue="end_type" Name="campo" Type="String" />
                                    </SelectParameters>
                                </asp:ObjectDataSource>
                            </td>
                            <td colspan="3"></td>
                        </tr>
                        
                        
                    
                    </table>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    
    

    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="getGameResult" TypeName="BoxScore.Model.BoxScoreBD">
        <SelectParameters>
            <asp:QueryStringParameter Name="id" QueryStringField="juego" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    
    

</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="resultados" runat="server">
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="proximos" runat="server">
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="publicidadAjena" runat="server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="publicidad" runat="server">
</asp:Content>
